package com.googlecode.ozonbooksfinder.cairngormfinder.utils
{
	import com.googlecode.ozonbooksfinder.domain.Book;
	
	public class BuildStronglyTypedBookVO
	{
		public static function build(val:Object):Book
		{
			var book:Book = new Book();
			book.id = val.ID;
			book.author = val.Author;
			book.annotation = val.Annotation;
			book.itemType = val.ItemType;
			book.name = val.Name;
			book.otherName = val.OtherName;
			book.price = val.Price;
			book.year = val.Year;
			book.imagePath = val.Picture;
			book.url = val.Url;
			book.availability = val.Availability;
			book.availabilityDate = val.AvailabilityDate;
			book.specialPrice = val.SpecialPrice;
			book.weight = val.weight;
			return book;
		}
	}
}